
 <hr />

<?php 
	echo ($model->isNewRecord) ? '<h2> Add New </h2>' : '' ;

?>
<!--<div class="sitemanager-form" style="display:none">
--><div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sitemanager-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'First Name'); ?>
		<?php echo $form->textField($model,'SiteFirstName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'SiteFirstName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Last Name'); ?>
		<?php echo $form->textField($model,'SiteLastName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'SiteLastName'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'idRentalProperty'); ?>
		<?php echo $form->hiddenField($model,'idRentalProperty'); ?>
		<?php //echo $form->error($model,'idRentalProperty'); ?>
	</div>

	<div class="row">
		<?php  //echo $form->labelEx($model,'idManagement'); ?>
		<?php  echo $form->hiddenField($model,'idManagement'); ?>
		<?php  //echo $form->error($model,'idManagement'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Email'); ?>
        <?php echo $form->textField($model,'SiteManagerEmail',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'SiteManagerEmail'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>
<!--</div>-->

</div><!-- form -->

<div class="form">
</div>